﻿<UserControl x:Class="kernel.gui.modules.AdoptedModules"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:gui="clr-namespace:kernel.gui"
             xmlns:lang="clr-namespace:kernel" xmlns:system="clr-namespace:System;assembly=mscorlib"
             xmlns:xctk="clr-namespace:Xceed.Wpf.Toolkit;assembly=WPFToolkit.Extended"
             mc:Ignorable="d"
             d:DesignHeight="500" d:DesignWidth="800">

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="220" />
            <ColumnDefinition />
            <ColumnDefinition Width="185" />
            <ColumnDefinition Width="10" />
            <ColumnDefinition Width="81" />
            <ColumnDefinition Width="117" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="5" />
            <RowDefinition />
            <RowDefinition Height="80" />
            <RowDefinition Height="53" />
        </Grid.RowDefinitions>

        <DataGrid Grid.Row="2" CanUserAddRows="False" CanUserDeleteRows="False" CanUserResizeRows="False"
                  SelectionMode="Single" Grid.ColumnSpan="7" VerticalAlignment="Stretch"
                  IsSynchronizedWithCurrentItem="True" SelectionUnit="FullRow">
            <DataGrid.Columns>
                <DataGridTextColumn Header="{x:Static lang:Localization.adopted}" Width="*">
                </DataGridTextColumn>
                <DataGridTextColumn Header="{x:Static lang:Localization.number}" Width="*">
                </DataGridTextColumn>
                <DataGridTextColumn Header="{x:Static lang:Localization.firm}" Width="*">
                </DataGridTextColumn>
                <DataGridTextColumn Header="{x:Static lang:Localization.mark}" Width="*">

                </DataGridTextColumn>
                <DataGridTextColumn Header="{x:Static lang:Localization.kod_Imei}" Width="*">
                </DataGridTextColumn>
                <DataGridTextColumn Header="{x:Static lang:Localization.problem}" Width="*">

                </DataGridTextColumn>
                <DataGridTextColumn Header="{x:Static lang:Localization.price}" Width="*">

                </DataGridTextColumn>
            </DataGrid.Columns>
            <Button />
        </DataGrid>
        <Grid Grid.Row="4" Grid.ColumnSpan="7">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="105" />
                <ColumnDefinition />
                <ColumnDefinition Width="105" />
                <ColumnDefinition Width="20" />
                <ColumnDefinition Width="105" />
                <ColumnDefinition Width="20" />
                <ColumnDefinition Width="105" />
            </Grid.ColumnDefinitions>
            <Button Grid.Column="6">
                <TextBlock Text="{x:Static lang:Localization.remove}" TextAlignment="Center" TextWrapping="Wrap" />
            </Button>
            <Button Grid.Column="4">
                <TextBlock Text="{x:Static lang:Localization.change}" TextAlignment="Center" TextWrapping="Wrap" />
            </Button>
            <Button x:Name="AddNewOrder" Grid.Column="2">
                <TextBlock Text="{x:Static lang:Localization.add}" TextAlignment="Center" TextWrapping="Wrap" />
            </Button>
            <Button>
                <TextBlock Text="{x:Static lang:Localization.a_Receipt_For_The}" TextAlignment="Center"
                           TextWrapping="Wrap" />
            </Button>
        </Grid>
        <Grid Grid.Row="3" Grid.ColumnSpan="7">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="150" />
                <ColumnDefinition Width="10" />
                <ColumnDefinition Width="181*" />
                <ColumnDefinition Width="10" />
                <ColumnDefinition Width="150" />
                <ColumnDefinition Width="10" />
                <ColumnDefinition Width="103*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="5" />
                <RowDefinition Height="20" />
                <RowDefinition Height="10" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="15" />
            </Grid.RowDefinitions>
            <TextBlock Grid.Row="3" TextWrapping="Wrap" Text="{x:Static lang:Localization.note_To_The_Problem}"
                       TextAlignment="Center" VerticalAlignment="Center" />
            <TextBox Grid.Column="2" Grid.Row="3" TextWrapping="Wrap" />
            <TextBlock Grid.Column="4" Grid.Row="3" TextWrapping="WrapWithOverflow"
                       Text="{x:Static lang:Localization.customer_S_Phone}" TextAlignment="Center"
                       VerticalAlignment="Center" />
            <xctk:MaskedTextBox x:Name="MaskedTextBox" Grid.Row="3"
                                Mask="+38(099)999-99-99"
                                ValueDataType="{x:Type system:String}" Grid.Column="6" />
        </Grid>
        <TextBox TextWrapping="Wrap" Grid.Column="5" TextAlignment="Center" IsReadOnly="True" />
        <TextBlock TextWrapping="Wrap" TextAlignment="Center"
                   Text="{x:Static lang:Localization.all_Phones_Taken}" Grid.Column="3" VerticalAlignment="Center" />
        <TextBlock Grid.Column="1" TextWrapping="Wrap" Text="{x:Static lang:Localization.guide_To_The_Order}"
                   VerticalAlignment="Center" />
        <TextBlock x:Name="DateText" Grid.Column="6" Margin="5,0" TextWrapping="Wrap" TextAlignment="Center"
                   Text="{x:Static gui:Controller.DateNowToString}" x:FieldModifier="private"
                   VerticalAlignment="Center" />

    </Grid>
</UserControl>